import { loadEnv } from "@build/index";
import { getToken } from "/@/utils/auth";
const { VITE_PROXY_DOMAIN_REAL } = loadEnv();

export default {
  uploadUrl:
    process.env.NODE_ENV === "production"
      ? `${VITE_PROXY_DOMAIN_REAL}/v1/upload`
      : "http://localhost:8848/api/v1/upload",
  headers: {
    "Content-Type": "multipart/form-data",
    Token: getToken().token
  }
};
